home *** CD-ROM | disk | FTP | other *** search
- Path: news1.cris.com!Crawford
- From: Crawford@cris.com (CRAWFORD)
- Newsgroups: comp.lang.c
- Subject: Re: ANSI var-arglist processing
- Date: 9 Feb 1996 16:58:54 GMT
- Organization: Concentric Internet Services
- Message-ID: <4ffuge$j3@spectator.cris.com>
- References: <311B1EF2.7673@exel.co.uk>
- Reply-To: crawford@iac.net
- NNTP-Posting-Host: voyager-fddi.cris.com
-
- Jason Hambleton <jkh@exel.co.uk> writes:
- >func2(char *fmt, ...)
- >{
- > va_list args;
- > char buffer[81];
- > va_start(args, fmt);
- > vsprintf(buffer, fmt, args);
- > va_end(args);
- > printf("RESULT = (%s)\n", buffer);
- >}
-
- >func1(char *fmt, ...)
- >{
- > /* How do I pass the arg-list from here, to the next function */
-
- > func2(fmt, ????????);
- >}
-
- The answer lies in func2. How did you pass the variable
- argument list to vsprintf?
-
- --
- "They sentenced me to twenty years of boredom, for trying to change
- the system from within."
-
- Robert Crawford crawford@iac.net
-